home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 2 / 500 MB nyheder direkte fra internet CD 2.iso / start / data / text / program.txt < prev    next >
Text File  |  1994-09-21  |  6KB  |  110 lines

  1.  
  2.              BACKGROUND
  3.   This is the middle page of the book. The 319 pages before it 
  4. cover what's new and hot about computers. The 319 pages after it 
  5. cover the eternal truths.
  6.   10 years from now, the stuff in the first half of the book will 
  7. be considered ``obsolete''. The stuff in the second half of the 
  8. book will be considered ``still true''.
  9.   This page is your introduction to eternity.
  10.  
  11.             Why program?
  12.   We begin our look at eternal truths by studying programming. Of 
  13. the 8 sections that make up this book, the section on programming 
  14. is the longest: 271 pages! It's this book's deepest and most 
  15. thorough adventure. It's the adventure that does the most to 
  16. expand your mind and turn you into a brilliant thinker. Here's 
  17. where your career's long-term growth gets its biggest boost.
  18.   Here's where you learn the secret of computer life! You learn 
  19. how to take a computer ___ which is just a hunk of metal and 
  20. plastic ___ and teach it new skills, by feeding it programs. Your 
  21. teaching and programs turn the computer into a thinking organism. 
  22. If you teach the computer well, you can make it become as smart 
  23. as you and even imitate your personality. You become the 
  24. computer's God, capable of making the computer do anything you 
  25. wish. Ah, the power!
  26.   Folks who read just the first half of this book are at the 
  27. mercy of Microsoft and other money-grubbing companies: whenever 
  28. those unfortunate folks want to make the computer do something, 
  29. they must buy a program that teaches the computer how. If 
  30. computer stores don't carry a program for that particular task 
  31. ___ or if the program's price is unaffordable ___ those folks are 
  32. out of luck.
  33.   But once you learn how to program, you're lucky! You can make 
  34. the computer do anything you want! All you need is the patience 
  35. and perseverence to finish writing your program. And if you ever 
  36. get stuck, phone me anytime at 617-666-2666 for free help.
  37.   When you finish writing your program, you can sell it to the 
  38. idiots who've read just the first half of the book ___ and you're 
  39. on your way to turning yourself into the next Microsoft.
  40.  
  41.               It's easy
  42.   Programming the computer can be easy. You'll write your own 
  43. programs just a few minutes from now, when you reach page 328! As 
  44. you read farther, you'll learn how to write programs that are 
  45. more sophisticated.
  46.                                                 Computer languages
  47.                                          To program a computer, 
  48. you put your fingers on the computer's keyboard and type 
  49. commands. You type the commands in English.
  50.                                          The computer understands 
  51. just part of English; it understands just a few words and 
  52. phrases. The words and phrases the computer understands are 
  53. called the computer's language.
  54.                                          Most computers 
  55. understand a language called BASIC. It consists of words such as 
  56. PRINT, GO, TO, INPUT, IF, and THEN.
  57.                                          To begin, I'll explain 
  58. how to program the computer by using those BASIC words. 
  59. Afterwards, I'll explain how to use different computer languages 
  60. instead.
  61.                                          For example, I'll 
  62. explain how to program the computer by using a language called C. 
  63. In C, you must say ``printf'' instead of ``PRINT'', and you must 
  64. say ``scanf'' instead of ``INPUT''.
  65.                                          Notice that C appeals to 
  66. dirty minds who like to say ``f'' words! Another reason why 
  67. programmers use C is that programs written in C run faster and 
  68. consume less RAM than if written in BASIC.
  69.                                          But let's start with 
  70. BASIC, which is pleasantly human, easy, and tasteful.
  71.     Why learn so many languages?
  72.   Programmers love to argue about which language is best. BASIC 
  73. is easy to learn. C runs quickly and consumes less RAM. DBASE 
  74. includes extra words that help manipulate databases. PASCAL lets 
  75. you organize your thinking better. LOGO fascinates kids by 
  76. showing turtles move across the computer's screen. FORTRAN 
  77. handles complex numbers used by engineers. COBOL handles the 
  78. giant accounting tasks faced by big banks, insurance companies, 
  79. and the IRS. Thousands of other languages have been invented, 
  80. too!
  81.   Each language continually improves by stealing words from other 
  82. languages ___ just as we English speakers stole the word 
  83. ``restaurant'' from the French, and the French stole the word 
  84. ``weekend'' from us.
  85.   Because of the mutual stealing, computer languages are becoming 
  86. more alike. But each language still retains its own ``inspired 
  87. lunacy'', its own weird words that other languages haven't copied 
  88. yet.
  89.   This book turns you into a complete expert by teaching you how 
  90. to program in many languages, so you become multilingual!
  91.   Learning a new language affects your way of thinking. For 
  92. example, most American think cockroaches are disgusting; but when 
  93. a German housewife sees a cockroach, she just giggles, because 
  94. she thinks of the German word for ``cockroach'', which is 
  95. ``küchenschabe'', which means ``kitchen scraper'', ``a cute 
  96. little thing that sweeps the kitchen''. Yes, even the ugliest 
  97. problems look cute when you know how to express your thoughts 
  98. multilingually!
  99.   Each language adds new words to your vocabulary so you gain new 
  100. ways to express your problems, solutions, and thoughts about 
  101. them. When you face a tough programming problem and try to reduce 
  102. it to words the computer understands, you'll think more clearly 
  103. if you're multilingual and mastered enough vocabulary to turn the 
  104. vague problem into precise words quickly.
  105.   An expert programmer can boil complex hassles down to a series 
  106. of simple concepts. To do that, you need on the tip of your 
  107. tongue the words defining those simple concepts. The more 
  108. computer languages you study, the more words you'll learn, so you 
  109. can quickly verbalize the crux of each computer problem and solve 
  110. it.